export default {
    state: {
       dict: JSON.parse(sessionStorage.getItem('dict')) || {}
    },
    mutations: {
        setDict(state, log) {
            sessionStorage.setItem(`dict`, JSON.stringify(log))
            state.dict = log; 
        },
    },
    actions: {
        setDict({ commit }, log) {
            commit("setDict", log);
        },
    },
    getters: {
        getDict(state) {
            return state.dict;
        },
    }
}